package com.example.interview.no0109.solution;

import com.example.interview.no0109.Solution;

/**
 * @Description 解答-字符串轮转
 * @ClassName SolutionImpl
 * @Author Administrator
 * @Date 2020/5/20 10:26
 * @Version 1.0.0
 */
public class ContainsSolutionImpl implements Solution {
    @Override
    public boolean isFlipedString(String s1, String s2) {
        if(s1.length() != s2.length()){
            return false;
        }
        if(s1.equals(s2)){
            return true;
        }
        if((s1+s1).contains(s2)){
            return true;
        }
        return false;

//        return s1.equals(s2)||(s1.length()==s2.length()&&(s1+s1).contains(s2));
    }
}
